<%@page import="com.lyf.util.DateUtil"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ include file="include/base.jsp" %>

<!DOCTYPE html>
<!-- saved from url=(0036)http://192.168.0.77/pms/contact.html -->
<html lang="zh-CN"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="${basePath }/css/bootstrap.min.css">
	<script type="text/javascript" src="${basePath }/js/jquery-1.8.2.min.js"></script>
	<!-- <script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script> -->
	<script type="text/javascript" src="${basePath }/js/bootstrap.min.js"></script>
</head>
<body class="body">
	
	<jsp:include page="include/top.jsp"></jsp:include>
	
	
	<div class="container">
	  <div class="row">
	  
		<jsp:include page="include/side.jsp">
			<jsp:param value="linkman" name="tag"/>
		</jsp:include>
		
		<div class="span9">
			
			<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0">
				<li class="active">
					<a href="http://192.168.0.77/pms/task.html"><i class="icon-user"></i>联系人</a>
				</li>
			</ul>
			<div class="wall">
				<div class="row">
					<div class="span3">
						<a href="${basePath }/linkman/toNewLinkman" class="btn span2"><i class="icon-plus"></i>添加联系人</a>
						<div class="clear"></div>
						<ul class="unstyled" style="margin-top:15px">
							<c:forEach items="${linkmanList }" var="man">
								<li style="line-height:30px">
									<i class="icon-list-alt"></i><a href="${basePath }/linkman/toShowLinkman?id=${man.id}">${man.l_name }</a>
								</li>
							</c:forEach>
							
						</ul>
					</div>
					<div class="span5" style="min-height:400px;border-left:1px solid #ccc;padding-left:15px">
						<address>
						<c:choose>
							<c:when test="${sessionScope.linkman.id != null}">
							<h3>${sessionScope.linkman.l_name }</h3>
							<p>${sessionScope.linkman.l_company }</p>
							<small>手机</small> ${sessionScope.linkman.l_telphone }<br>
							<small>固话</small> ${sessionScope.linkman.l_phone }<br><br>
							<small>邮箱</small> ${sessionScope.linkman.l_email }<br>
							<small>地址</small> ${sessionScope.linkman.l_address }<br><br>
							<small>主页</small> <a href="${sessionScope.linkman.l_home_html }">${sessionScope.linkman.l_home_html }</a><br>
							<small>微博</small> <a href="${sessionScope.linkman.l_real_blog }">@${sessionScope.linkman.l_blog }</a><br>
							</c:when>
							<c:when test="${sessionScope.linkman.id == null }">
								<h3>暂无联系人,<a href="${basePath }/linkman/toNewLinkman">新建</a></h3>
							</c:when>
						</c:choose>
						</address>
						<div class="line">记录</div>
						<c:forEach items="${recordList }" var="r" begin="0" end="2">
							<blockquote>
							  ${r.r_describle }
							  <c:set var="time" value="${r.r_createTime }"></c:set>
							  <%
							  	 String time = (String)pageContext.getAttribute("time");
							     time = DateUtil.getAskedTime(time);
							     pageContext.setAttribute("time",time);
							  %>
							  <small>${r.employee.username }发布于 ${time }</small>
							</blockquote>
						</c:forEach>
						
						<a href="${basePath }/record/toRecord">查看所有记录</a>
						<br><br><br>
						<a class="btn btn-primary" href="${basePath }/linkman/toEditLinkman"><i class="icon-pencil icon-white"></i>编辑</a>
						<a class="btn btn-danger" href="${basePath }/linkman/delLinkman"><i class="icon-trash icon-white"></i>删除</a>
					</div>
				</div>
			</div>
			
			
			
		</div>
	  </div>
	</div>

</body></html>
